<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="description" content="Static &amp; Dynamic Tables" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- basic styles -->

		<link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="../assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<!-- fonts -->

		<!-- link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" /-->
		<link rel="stylesheet" href="../assets/css/font.css" />

		<!-- ace styles -->

		<link rel="stylesheet" href="../assets/css/ace.min.css" />
		<link rel="stylesheet" href="../assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="../assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="../assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->

		<script src="../assets/js/ace-extra.min.js"></script>
</head>
<body>
	<div class="breadcrumbs" id="breadcrumbs">
		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">联系人</a>
			</li>
			<li class="active">查看</li>
		</ul><!-- .breadcrumb -->
		<div class="nav-search" id="nav-search">
			<form class="form-search" name="friend_search_form" method="post" target="friend_iframe" action="friend_list">
				<span class="input-icon">
					<input type="text" placeholder="可按姓名或备注搜索" class="nav-search-input" id="nav-search-input" autocomplete="off" name="name_or_remark" onkeydown="search(event)"/>
					<input type="hidden" name="pageSize" value="20"/>
					<input type="hidden" name="currentPage" value="1"/>
					<i class="icon-search nav-search-icon"></i>
				</span>
			</form>
		</div><!-- #nav-search -->
	</div>
	<iframe frameBorder="0" scrolling="no" id="friend_iframe" name="friend_iframe" width="100%" height="100%" onLoad="iFrameHeight()" src="friend_list"></iframe>	
<script type="text/javascript">
function iFrameHeight(){
	window.iframeResize = function(){  
        var  dvalue = 0;  
       // if($.browser.safari){  
       //     dvalue = 67; 
       // }  
        parent.document.getElementById("main_iframe").scrolling = "no";  
        parent.document.getElementById("main_iframe").height = "";  
        parent.document.getElementById("main_iframe").style.height = "";  
        parent.document.getElementById("main_iframe").height = document.body.scrollHeight + dvalue;  
      };
      if(window.iframeResize){  
          window.iframeResize();  
      }
}

//搜索
function search(event){
	if(event.keyCode == 13){
		document.contact_search_form.submit();
	}
}
</script>		
</body>

</html>